package com.hzsxy.bighomework.entity;

import javax.persistence.*;

/**
 * Created by 张晨 on 2018/11/28
 */
@Entity
@Table(name = "student")
public class StudentDO {

    @Id
    @Column(name = "student_id" ,length = 20,nullable = false)
    private String studentId;
    @Column(length = 10,nullable = false)
    private String name;

    public StudentDO() {
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
